home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
djgpp
/
tests
/
t15.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-11-28
|
3KB
|
69 lines
#include <stdio.h>
#include <go32.h>
extern char *__transfer_buffer;
char *mname(int m)
{
switch (m)
{
case _GO32_RUN_MODE_UNDEF:
return "undefined";
case _GO32_RUN_MODE_RAW:
return "raw";
case _GO32_RUN_MODE_XMS:
return "xms";
case _GO32_RUN_MODE_VCPI:
return "vcpi";
case _GO32_RUN_MODE_DPMI:
return "dpmi";
default:
return "unrecognized";
}
}
main()
{
printf(" size_of_this_structure_in_bytes = %08x (%d)\n",
_go32_info_block.size_of_this_structure_in_bytes,
_go32_info_block.size_of_this_structure_in_bytes);
printf(" linear_address_of_primary_screen = %08x (%d)\n",
_go32_info_block.linear_address_of_primary_screen,
_go32_info_block.linear_address_of_primary_screen);
printf(" linear_address_of_secondary_screen = %08x (%d)\n",
_go32_info_block.linear_address_of_secondary_screen,
_go32_info_block.linear_address_of_secondary_screen);
printf(" linear_address_of_transfer_buffer = %08x (%d)\n",
_go32_info_block.linear_address_of_transfer_buffer,
_go32_info_block.linear_address_of_transfer_buffer);
printf(" size_of_transfer_buffer = %08x (%d)\n",
_go32_info_block.size_of_transfer_buffer,
_go32_info_block.size_of_transfer_buffer);
printf(" pid = %08x (%d)\n",
_go32_info_block.pid,
_go32_info_block.pid);
printf(" master_interrupt_controller_base = %08x (%d)\n",
_go32_info_block.master_interrupt_controller_base,
_go32_info_block.master_interrupt_controller_base);
printf(" slave_interrupt_controller_base = %08x (%d)\n",
_go32_info_block.slave_interrupt_controller_base,
_go32_info_block.slave_interrupt_controller_base);
printf(" selector_for_linear_memory = %08x (%d)\n",
_go32_info_block.selector_for_linear_memory,
_go32_info_block.selector_for_linear_memory);
printf(" linear_address_of_stub_info_structure = %08x (%d)\n",
_go32_info_block.linear_address_of_stub_info_structure,
_go32_info_block.linear_address_of_stub_info_structure);
printf(" linear_address_of_original_psp = %08x (%d)\n",
_go32_info_block.linear_address_of_original_psp,
_go32_info_block.linear_address_of_original_psp);
printf(" run mode is %s (info is 0x%04x (%d))\n",
mname(_go32_info_block.run_mode),
_go32_info_block.run_mode_info,
_go32_info_block.run_mode_info);
printf("\ntransfer_buffer = %08x\n", __transfer_buffer);
return 0;
}